package com.yunzhou.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "yunzhou.elasticsearch") // 表明当前类为配置属性类
@Data
public class ElasticSearchProperties {
    String host;
    String port;
}
